"""
    create by IAmFiveHigh on 2023/7/29
"""
import random


class ArrayGenerator:
    @staticmethod
    def generate_random_array(n, max=0):
        bound = 0
        if max == 0:
            bound = n
        else:
            bound = max

        l = []
        for i in range(n):
            l.append(random.randint(0, bound))
        return l

    @staticmethod
    def generate_sorted_array(n):
        l = []
        for i in range(n):
            l.append(i)
        return l


if __name__ == '__main__':
    print(ArrayGenerator.generate_random_array(10))
